package com.pro.service;

import com.pro.entry.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 谭金诚
 * @Description TODO
 * @Date 2022/4/15 11:25
 * @Version 1.0
 */
public interface JsCourseService {

    List<JsCourse> getCourses(Integer currentPage, Integer pageSize, Integer courseStatus, Integer courseCstatus);

    JsCourse getCourseDetails(JsCourse course);

    List<JsCourse> getCourseMenu(Integer userId);

    List<JsComment> getCourseComments(Integer courseId, Integer type);

    Integer getCourseCommentsNums(Integer courseId, Integer type);

    List<Integer> getPraisedComms();

    Integer getPraisedCommsLog(JsCommentLike commentLike);

    boolean addCourseComment(JsComment comment);

    JsFabulous getPraiseCourse(JsFabulous fabulous);

    JsUserCollection getCollectionCourse(JsUserCollection userCollection);

    boolean addPraiseCourse(JsFabulous fabulous);

    boolean delPraiseCourse(JsFabulous fabulous);

    boolean addCollectionCourse(JsUserCollection userCollection);

    boolean delCollectionCourse(JsUserCollection userCollection);

    List<JsSearchKeywords> getHotKeywords(Integer num);

}
